package com.yp.shopping.bean;

public class GetResult{

    public static Result success() {
        Result result = new Result();
        result.setMsg(ResponseCode.SUCCESS.getDesc());
        result.setCode(ResponseCode.SUCCESS.getCode());
        return result;
    }

    public static Result fail() {
        Result result = new Result();
        result.setCode(ResponseCode.ERROR.getCode());
        result.setMsg(ResponseCode.ERROR.getDesc());
        return result;
    }
}
